<?php


namespace app\common\model;


class ProductCategoryModel extends CommonModel
{
    protected $name = 'product_category';

    public function getProductCategoryList($where = [])
    {
        return $this->with([])->order([
            'create_time' => 'desc',
        ])->where($where)->append([])->select();
    }

    public function getProductCategoryListPaginate($where = [], $page = 1, $limit = 10)
    {
        return $this->with([])->order([
            'create_time' => 'desc',
        ])->where($where)->append([])->paginate([
            'page'      => $page,
            'list_rows' => $limit,
        ]);
    }
}